import request from '@/utils/request'

export function getCardList(params){
  return request.get('/parking/card/list',{params})
}
export function createCardAPI(data) {
    return request({
      url: '/parking/card',
      method: 'POST',
      data
    })
  }

  export function getCardDetailAPI(id) {
    return request({
      url: `/parking/card/detail/${id}`
    })
  }

  export function updateCardAPI(data) {
    return request({
      url: `parking/card/edit`,
      method: 'PUT',
      data
    })
  }

  export function delCardAPI(id) {
    return request({
      url: `/parking/card/${id}`,
      method: 'DELETE'
    })
  }

  export function getCard(id){
    return request.get(`parking/card/${id}`)
  }